package com.ts.enterprise.exception.check;


import com.ts.enterprise.exception.ExceptionEnum;

/**
 * 参数校验异常, 功能类似于${@link IllegalArgumentException}
 *
 * @author meng.yu
 * @date 2020/7/27
 */
public class ParameterException extends CheckException {

    public ParameterException() {
        super(ExceptionEnum.PARAM_CHECK_EXCEPTION.getCode(), ExceptionEnum.PARAM_CHECK_EXCEPTION.getMsg());
    }

    public ParameterException(String message) {
        super(ExceptionEnum.PARAM_CHECK_EXCEPTION.getCode(), message);
    }
}
